dirty_num = "24^98.14_2113214"

part1 = dirty_num.split("^")
parts2 = part1[1].split("_")

front_num = part1[0]
middle_num = parts2[0]
last_num = parts2[1]

sum_num = front_num + middle_num + last_num
sum_num = float(sum_num)

print(f"{sum_num:.5f}")
